<template>
  <view class="category-tabs">
    <view class="tab active">全部</view>
    <view class="tab">
      <svg width="16" height="16" viewBox="0 0 16 16">
        <rect x="4" y="4" width="8" height="8" stroke="#333" stroke-width="1" fill="none"/>
      </svg>
      综合活动
    </view>
    <view class="tab">
      <svg width="16" height="16" viewBox="0 0 16 16">
        <path d="M4,12 L12,12 M4,8 L12,8 M4,4 L12,4" stroke="#333" stroke-width="1" fill="none"/>
      </svg>
      徒步
    </view>
    <view class="tab">
      <svg width="16" height="16" viewBox="0 0 16 16">
        <circle cx="8" cy="8" r="6" stroke="#333" stroke-width="1" fill="none"/>
      </svg>
      成长提
    </view>
    <view class="tab more">
      <svg width="16" height="16" viewBox="0 0 16 16">
        <rect x="2" y="2" width="12" height="12" stroke="#333" stroke-width="1" fill="none"/>
        <rect x="4" y="4" width="8" height="8" stroke="#333" stroke-width="1" fill="none"/>
      </svg>
    </view>
  </view>
</template>

<script setup>
// 分类Tab组件逻辑
</script>

<style scoped>
.category-tabs {
  display: flex;
  padding: 10px;
  overflow-x: auto;
  background: #fff;
  border-top: 1px solid #f0f0f0;
  border-bottom: 1px solid #f0f0f0;
}

.tab {
  display: flex;
  align-items: center;
  padding: 8px 16px;
  font-size: 14px;
  white-space: nowrap;
  color: #666;
}

.tab.active {
  color: #3de6e6;
  font-weight: bold;
  position: relative;
}

.tab.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: #3de6e6;
}

.tab svg {
  margin-right: 5px;
}
</style> 